package com.lanou.zy.projecta.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;

import com.lanou.zy.projecta.R;

/**
 * Created by dllo on 15/11/2.
 */
public class AnimActivity extends AppCompatActivity{
    private ImageView round_Iv, indicator_Iv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_loading_anim);
        initView();
    }

    private void initView() {
        round_Iv = (ImageView) findViewById(R.id.round_Iv);
        indicator_Iv = (ImageView) findViewById(R.id.indicator_Iv);

        Animation rotateAnimation = AnimationUtils.loadAnimation(this, R.anim.indicator);
        Animation scaleAnimation = AnimationUtils.loadAnimation(this, R.anim.round);
        round_Iv.setAnimation(scaleAnimation);
        indicator_Iv.setAnimation(rotateAnimation);
    }


}
